﻿using ChessTest.Chess.Algorithms;
using ChessTest.Chess.Items;
using org.xisoft.game.utils;
using org.xisoft.game.utils.game;
using System;
using System.Diagnostics;
using System.Windows.Forms;

namespace ChessTest.Chess
{
    /// <summary>
    /// 可以自己产生步骤的棋盘
    /// </summary>
    [Serializable]
    public class AiChessboard : Chessboard
    {

        private Boolean IsSame(AiChessboard other)
        {
            if (other.IsCurrentBlackMove != IsCurrentBlackMove)
                return false;

            for (int x = 0; x < MaxX; x++)
            {
                for (int y = 0; y < MaxY; y++)
                {
                    Chessman chessman = GetChessman(x, y);
                    Chessman otherChessman = other.GetChessman(x, y);

                    if (chessman != otherChessman)
                        return false;
                }
            }
            return true;
        }


    }
}
